import Body;

import java.util.Vector;


public class Specification {

		public String id,type;
		public Vector<Body> param;
		
		public Specification(){
			param =new Vector<Body>();

		}
		
		
		public String getId(){
			return this.id;
		}
		
		
		public void setId(String id){
			this.id = id;
		}
		
		public String getType(){
			return this.type;
		}
		
		public void add(Body p){
			this.param.add(p);
		}
		
		public void setType(String type){
			this.type = type;
		}
		
		public Vector<Body> getParam(){
			return this.param;
		}
		
		public void setParam(Vector<Body> param){
			this.param = param;
		}
		
		
		public String print(){
			String s=""; 
			s = "Id : " + this.id+"\nType : " + this.type+ "\nBody  : ";
			Body pr;
			for (int i=0; i<this.param.size(); i++){
				pr = (Body) this.param.get(i);
				s = s + pr.print()+ "  ";
			}
			s = s+"\n";
			
			return s;
		}
	
}
